home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK2.toast / Development Kits (Disc 2) / QuickTime / Sample Code / QT Sound Clock / SoundClock.r < prev    next >
Encoding:
Text File  |  1997-02-26  |  757 b   |  53 lines  |  [TEXT/MPS ]

  1. #define SystemSevenOrLater 1
  2.  
  3. #define UseExtendedThingResource 1
  4.  
  5. #include "Types.r"
  6. #include "MovieThingsRez.h"
  7.  
  8. type 'clok' {
  9.     hex string;
  10. };
  11.  
  12.  
  13. resource 'thng' (-1212,  "Tick Clock") {
  14.     'clok',
  15.     'micr',
  16.     'appl',
  17.     0x40000001 | cmpWantsRegisterMessage,
  18.     0,
  19.     'clok',
  20.     -1212,
  21.     'STR ',
  22.     -1212,
  23.     'STR ',
  24.     -1213,
  25.     0,
  26.     0,
  27.  
  28.     0x0,    /* version */
  29.     componentWantsUnregister,
  30.     0,
  31.     {}
  32. };
  33.  
  34. resource 'STR ' ( -1212) {
  35.     "Apple Sound Clock"
  36. };
  37.  
  38. resource 'STR ' ( -1213) {
  39.     "Provides a sound interrupt based Clock for QuickTime"
  40. };
  41.  
  42. #ifdef wayCoolBuild
  43.  
  44. Include $$Shell("RsrcDir")"SoundClock.rsrc" 'proc' (0) as 'clok' ( -1212, "Sound Clock" );
  45.  
  46. #else
  47.  
  48. resource 'clok' (-1212, "Tick Clock") {
  49. $$resource($$Shell("warholObjects")"Clocks:SoundClock",'clok', -1212);
  50. };
  51.  
  52. #endif
  53.